package for_test;

public class HelloWorld {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		System.out.println("Hello " + join(args, " and "));
		
	}

	public static String join(String[] args, String separator) {
		if (args.length==0) {
			return "";
		}
		StringBuilder result = new StringBuilder(args[0]);
		for (int i = 1; i<args.length; ++i){
			result.append(separator).append(args[i]);
		}
		return result.toString();
	}	

}
